{% extends "djips/common/base.html" %}
{% load i18n %}

{% block title %}
{% trans "Login" %}
{% endblock %}

{% block content %}

{% if logged_out %}
<p class="info_msg">{% trans "You have been disconnected." %}</p>
{% endif %}

{% if login_required %}
<p class="error_msg">{% trans "You must be logged-in to access this
  page." %}</p>
{% endif %}

{% if disable_account %}
<p class="error_msg">{% trans "Sorry, your account has been
  disabled." %}</p>
{% endif %}

{% if login_failed %}
<p class="error_msg">{% trans "Sorry, this username does not exists or the
password is incorrect." %}</p>
{% endif %}


<form method="POST"
      class="login_form"
      action="{{admin_base_url}}/login/">
  <label for="login">{% trans "Username" %}</label>
  <input type="text" name="login" id="login" />
  <br />

  <label for="password">{% trans "Password" %}</label>
  <input type="password" name="password" id="password">
  <br />
  {% if next %}
  <input type="hidden" name="next" value="{{next}}" />
  {% endif %}
  <input type="submit"
         value="{% trans "Login" %}"
         class="valid" />
</form>

{% endblock %}
